{"total":<#if gridResult??>${gridResult?size}<#else>"0"</#if>, "rows":[
<#if gridResult??&&gridResult?size&gt;0>
    <#list gridResult as temp>
    {"codeId":"${temp[0]!""}","companyId":"${temp[1]!""}","companyName":"${temp[2]!""}","U8SubjectName":"${temp[3]!""}","subjectName":"${temp[4]!""}","code":"${temp[5]!""}","deptId":"${temp[6]!""}"}<#if temp_has_next>,</#if>
    </#list>
</#if>
]}